package single_game.logic.race_simulator.race_team.my_riders_actions;

import main.CyclingManager;
import single_game.logic.race_simulator.race_team.RaceRider;

public class MyRiderStayBehind {
	
	public static void simulateRiderAction(RaceRider rider) {	
		rider.setPuls(165.0);
		if (rider.getEnergy() < 10.0) {
			rider.setPower(30);
			rider.setAction("Slow Down");
			System.out.println("myTeam: Stay -> Slow "+CyclingManager.getInstance().cyclists.get(rider.getCyclistId()).getSurname()+" "+rider.getRiderRole());
		}		
	}
}
